Skip to content

Conversation

dreampiggy
Copy link
Collaborator

This allows the following syntax:

WebImage(url: url)
.indicator { _, progress in
    ProgressBar(value: progress)
}

Instead of dummy syntax previously

WebImage(url: url)
.indicator ( 
    Indicator { _, progress in
        ProgressBar(value: progress)
    }
)

@dreampiggy dreampiggy added the enhancement New feature or request label Oct 27, 2019
@dreampiggy dreampiggy changed the title Add one convenient method on WebImage to associated indicator with view builder block Refactory the indicator API on WebImage, using the same design pattern like SwiftUI, return some View Oct 27, 2019
@dreampiggy dreampiggy merged commit b62cf93 into master Oct 27, 2019
@dreampiggy dreampiggy deleted the feature_convenient_indicator_API branch October 27, 2019 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant